vim.o.number = true
vim.o.relativenumber = true

vim.o.tabstop = 4
vim.o.shiftwidth = 4
vim.o.softtabstop = 4
vim.o.expandtab = true

vim.o.smartindent = true
vim.o.termguicolors = true
vim.o.cursorline = true
vim.o.background = "light"

vim.api.nvim_create_autocmd("TextYankPost", {
    callback = function()
        vim.highlight.on_yank({
            higroup = "Visual",
            timeout = 500
        })
    end
})

vim.api.nvim_create_autocmd("VimLeave", {
    callback = function()
        vim.o.guicursor = ""
        vim.fn.chansend(vim.v.stderr, "\x1b[ q")
    end
})
